<div class="container-fluid" style="padding: 20px 10px 0px 10px">
	<div class="row-fluid">
		<div class="well">
		    <ul class="nav nav-tabs">
		      <li class="active"><b>变量设置</b></li>
		    </ul>
		    <div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="home">
					<form id="formid" action="/config/addset" method="post">
						<p><input type="text" value="<?=$getData['config_desc']?>" placeholder="变量描述" style="width:425px" <?=$getData['is_system'] ? 'disabled' : 'name="config_desc"'?> type='text' class="checkdesc"><?=$getData['is_system'] ? '<span style="color:red;font-size:6px"> *系统变量不可改</span>' : ''?></p>
						<p><input type="text" value="<?=$getData['config_column']?>" placeholder="变量名" style="width:425px" <?=$getData['is_system'] ? 'disabled' : 'name="config_column"'?> type='text' class="checkname"><?=$getData['is_system'] ? '<span style="color:red;font-size:6px"> *系统变量不可改</span>' : ''?></p>
						<p><input type="text" value="<?=$getData['video_url']?>"  style="width:425px" <?=$getData['is_system'] ? 'disabled' : 'name="video_url"'?> type='text' class="checkdesc"><?=$getData['is_system'] ? '<span style="color:red;font-size:6px"> *系统变量不可改</span>' : ''?></p>
						<p><input type="text" value="<?=$getData['more_url']?>"  style="width:425px" <?=$getData['is_system'] ? 'disabled' : 'name="more_url"'?> type='text' class="checkdesc"><?=$getData['is_system'] ? '<span style="color:red;font-size:6px"> *系统变量不可改</span>' : ''?></p>
						<p>
							<textarea style="width:425px;height:105px" name="config_val" placeholder="变量值" class="checkval"><?=$getData['config_val']?></textarea>
						</p>
						<input type="hidden" value="<?=$getData['id']?>" name="id" />
						<input type="hidden" value="<?=$getData['config_column']?>" name="setid" />
						<input type="hidden" value="1" name="dosubmit" />
					</form>
				</div>
				<div class="btn-toolbar">
				    <button class="btn btn-primary" id="btn-save"><i class="icon-save"></i> 保存</button>
				  <div class="btn-group">
				  </div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
	$('#btn-save').click(function(){
		if(!($('.checkdesc').val())){
			showmsg('变量描述不能为空');
			return false;
		}else if(!($('.checkname').val())){
			showmsg('变量名不能为空');
			return false;
		}else if(!($('.checkval').val())){
			showmsg('变量值不能为空');
			return false;
		}else{
			setBtn($('#btn-save'));
			$('#formid').submit();
		}
	});
})
</script>